<!DOCTYPE html>
<html>
<head>
    <?php include(__DIR__ . '/../Public/header.php'); ?>
    <style type="text/css">

    </style>
</head>
<body class="skin-black fixed">
<?php include(__DIR__ . '/../Public/nav.php'); ?>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <?php include(__DIR__ . '/../Public/left.php'); ?>
    <aside class="right-side">
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <?php foreach($currency as $k => $v){ ?>
                    <section class="panel">
                        <header class="panel-heading"><?=$v['currency_mark']?> <?=L('market',2)?></header>
                        <div class="panel-body table-responsive">
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th width="15%"><?=L('coin',2)?></th>
                                        <th><?=L('price',2)?></th>
                                        <th width="20%"><?=L('24H_done_num',2)?></th>
                                        <th width="20%"><?=L('24H_done_money',2)?></th>
                                        <th width="8%"><?=L('24H_change',2)?></th>
                                        <th width="8%"><?=L('7D_change',2)?></th>
                                        <th width="8%"><?=L('add_time',2)?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach($v['list'] as $key=>$vo){ ?>
                                    <tr>
                                        <td><a href="<?=url('market/trade',array('currency'=>$vo['currency']['currency_mark'].'_'.$vo['trade_currency']['currency_mark']))?>"><img src="<?=PUB_PATH?><?=$vo['currency']['currency_logo']?>" width='16px' height='16px' class='pull-left' style='margin-top:2px;'>&nbsp;<?=$vo['currency']['currency_name']?>/<?=$vo['trade_currency']['currency_mark']?></a></td>
                                        <td>
                                            <?php if($vo['new_price_status']==1){ ?>
                                            <span class="text-danger"><?=number_format($vo['new_price'], 8, '.', '')?></span>
                                            <?php }else{ ?>
                                            <span class="text-success"><?=number_format($vo['new_price'], 8, '.', '')?></span>
                                            <?php } ?>
                                        </td>
                                        <td><?=number_format(($vo['24H_done_num']?$vo['24H_done_num']:0), 8, '.', '')?></td>
                                        <td><?=number_format(($vo['24H_done_money']?$vo['24H_done_money']:0), 8, '.', '')?></td>
                                        <td><span <?php if($vo['24H_change']>0){ ?>class="text-danger"<?php }else{ ?>class="text-success"<?php } ?> ><?=$vo['24H_change']?>%</span></td>
                                        <td><span <?php if($vo['7D_change']>0){ ?>class="text-danger"<?php }else{ ?>class="text-success"<?php } ?>><?=$vo['7D_change']?>%</span></td>
                                        <td><?=date('Y-m-d', $vo['add_time'])?></td>
                                    </tr>
                                    <?php }?>
                                </tbody>
                            </table>
                        </div>
                    </section>
                    <?php } ?>
                </div><!--end col-12 -->
            </div>
        <!-- row end -->
        </section><!-- /.content -->

        <?php include(__DIR__ . '/../Public/copyright.php'); ?>
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<?php include(__DIR__ . '/../Public/footer.php'); ?>

</body>
</html>